home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 551-575 / disk_563 / menu2asm / menu2asm.doc < prev    next >
Text File  |  1992-05-06  |  3KB  |  80 lines

  1. ==========================================================================
  2.  Documentation for the modul Menu2Asm  04-Jun-91  Jürgen Zimmermann
  3.  Author: Jürgen Zimmermann, Ringstr. 6, W-6719 Altleiningen, Germany
  4. ==========================================================================
  5.  
  6. Copyright
  7. ===========
  8. The whole package (source, documentation and objectcode) is
  9. freeware. It is allowed to copy and spread it as long as...
  10.  
  11. * my name and the copyright-note are left in,
  12. * the completeness of the package is guaranteed,
  13. * no profit is made by copying, selling or using my programs.
  14.  
  15. Suggestions are always welcome. If you do any modifications with the
  16. program, please document them. If there are many or great changes of
  17. the source by you, you should send me a note about them. If you find
  18. any bugs in the program, please send me a detailed bug-report, I'll
  19. work on it.
  20.  
  21. The package "Menu2Asm"
  22. =====================
  23. The whole package "Menu2Asm" contains:
  24.  
  25. *  Menu2Asm.doc   This documentation
  26. *  Menu2Asm.dok   The german documentation
  27. *  Menu2Asm.mod   The source of the modul
  28. *  Menu2Asm.def   The source of the definition
  29. *  -.obj + -.sym  The object-  symbol-files of the modul
  30.  
  31.  
  32. To "Menu2Asm"
  33. =============
  34. With the modul "Menu2Asm" it is possible to use initialized
  35. menus with the new version of the Modula-2-Compiler M2Amiga V4.0.
  36. The menus are linked together with the program, no additional
  37. source-code is neccessary to built up the structures at run-time.
  38.  
  39. The way to use "Menu2Asm" is as easy as possible: after you have built up
  40. YOUR menu an installed it with the procedure IntuitionL.SetMenuStrip to
  41. a window, call the procedure Menu2Asm.MakeMenu2Asm(pointer to your
  42. window). At this time a window opens on the Workbench Screen (if you
  43. started your program from the workbench) or a message in the CLI/SHELL
  44. appears. Now you must type in the whole name and path you want the produced
  45. source to be written to. Any extension (e.g. ".hallo") of the filename is
  46. ignored!
  47. The procedure then writes a definition- and an implementation-modul.
  48. Also a file named "programname"+"Asm.asm" is produced, which contains
  49. the A68k-compatible source for the menu-structure. All you have to do now is
  50. to assemble the assembler-source with an assembler and to compile the
  51. definition- and implementation-modul with M2Amiga. The assembled file
  52. MUST have the extension ".obj" and MUST be put in the "obj/"-directory of
  53. the project - if you have one. The objectfile MUST also have the same name
  54. as the source, because the linker looks for it with that name!
  55.  
  56. To use the menu in your own program, you just import the pointer to the
  57. menu (called "MenuStrip") and install the menu using the function
  58. "IntuitionL.SetMenuStrip". There now is no need for the time- and
  59. space-wasting initialization of the menu during program-start,
  60. it is already there!
  61.  
  62.  
  63. And now a hint to all professional programmers:
  64. The two by "Menu2Asm" produced Modula-2-modules are only for the quick and
  65. easy use of pre-initialized menus. If you copy the "VAR"-line of the
  66. definition-module in your own source, you no longer have the need for
  67. the the definition- and the implementation-module. You also have a gain
  68. of about 80 bytes space!
  69.  
  70.  
  71.  
  72. Bye,
  73.  
  74.  
  75.     Yours
  76.  
  77.  
  78.       Jürgen
  79.